﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DTO.Models.MEDIA>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    CIT.COM.VN - CHI TIẾT <%= ConfigurationManager.AppSettings[ViewData["TypeMediaName"].ToString()] %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% string domaincms = ConfigurationManager.AppSettings["domaincms"]; %>
    <div class="dung-maincontent-show">
        <div class="dung-section">
            <div class="dung-section-border">
            </div>
            <div class="dung-section-title">
                CHI TIẾT THÔNG TIN</div>
            <div class="dung-section-content">
                <div class="dung-item">
                    <div class="dung-col2 dung-other1 dung-left dung-text-center">
                        <a href="#">
                            <img src='<%= Html.Encode(domaincms + "/MediaImage/" + Model.ID.ToString() + ".jpg") %>'
                                width="100%" height="100" alt="" /></a>
                    </div>
                    <div class="dung-col2 dung-other2 dung-right">
                        <p>
                            <b class="dung-larger"><a href="#">
                                <%= Html.Encode(Model.Title) %></a></b>
                            <br />
                            <span class="dung-small">Cập nhật ngày
                                <%= Html.Encode(string.Format("{0:dd/MM/yyyy H:mm:ss tt}", Model.DateModify)) %></span>
                        </p>
                        <p>
                            <%= Html.Encode(Model.Intro) %></p>
                        <p class="dung-text-right"><%= Html.ActionLink("Trở lại danh sách", "xemthongtin", "Thongtin", new { Id = ViewData["TypeMediaName"].ToString(), pageIndex = ViewData["PageIndex"] }, null)%></p>
                    </div>
                    <div class="clearer">&nbsp;</div>
                </div>
                <div class="dung-item" id="content">
                    <%= Model.Content %>
                    <p class="dung-text-right"><%= Html.ActionLink("Trở lại danh sách", "xemthongtin", "Thongtin", new { Id = ViewData["TypeMediaName"].ToString(), pageIndex = ViewData["PageIndex"] }, null)%></p>
                </div>
                
            </div>
        </div>
    </div>
    <script type="text/javascript">

        $("#content img").each(function () {
            var url = $(this).attr("src");
            url = '<%= domaincms %>' + url;
            $(this).attr("src", url);
        });
	
    </script>
</asp:Content>
